﻿/*
 * DatabaseManager.cs
 * Written by: Shawn Gilleland
 */

using Supply_Fetch;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StorageLayer
{
    class DatabaseManager
    {
        private DBAccessImpl dbImp;

        public DatabaseManager()
        {
            dbImp = new AccessAccess();
        }

        public List<Drawer> FindItem(Item item)
        {
            return dbImp.FindItem(item);
        }

        public bool AddItem(Item item, Drawer drawer)
        {
            return dbImp.AddItem(item, drawer);
        }

        public bool RemoveItem(Item item, Drawer drawer)
        {
            return dbImp.RemoveItem(item, drawer);
        }

        public List<Drawer> LoadItems()
        {
            return dbImp.LoadItems();
        }

        public void RecordItemRequest(Item item)
        {
            dbImp.RecordItemRequest(item);
        }
    }
}
